package com.grain.mall.goods.feign;

import entity.Student;
import myConst.ServerConst;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * MarketFeingn
 * <p/>
 *  market服务的远程调用
 * @author kmchen
 * @Date 2020/11/25 10:10
 * Copyright (c) 2018 MANJDD
 */
@FeignClient(value = ServerConst.MARKET_SERVER)
public interface MarketFeign {

    @GetMapping("/market/showStudent")
    List<Student> showStudent();
}
